//
//  HMUserAccountViewModel.h
//  SinaWeiBo
//
//  Created by WGP on 16/4/11.
//  Copyright © 2016年 WGP. All rights reserved.
//

#import <Foundation/Foundation.h>

@class HMUserAccount;
@interface HMUserAccountViewModel : NSObject

@property(nonatomic,strong)HMUserAccount *userAccount;

@property(nonatomic,assign)BOOL userLogin;

+(instancetype)sharedInstance;
-(void)loadAccessToken:(NSString *)code loadAccessTokenFinished:(void (^)(NSError *error))finished;
-(void)loadUserInfo:(void(^)(NSError *error))loadUserInfoFinished;

@end
